/**
 * <pre>
 * Title: 		EnhancedModeReflectProvider.java
 * Author:		tl
 * Create:	 	2011-6-10 下午02:50:18
 * Copyright: 	Copyright (c) 2011
 * Company:		Shenzhen Helper
 * <pre>
 */
package cn.bisoft.java.test;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

import com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider;

/**
 * <pre>
 * 支持静态字段转换,但有缺陷,字段不能映射成属性.
 * </pre>
 * @author tl
 * @version 1.0, 2011-6-10
 */
public class EnhancedModeReflectProvider extends Sun14ReflectionProvider
{
	@Override
	protected boolean fieldModifiersSupported(Field field)
	{
		return !(Modifier.isTransient(field.getModifiers()));
	}
	
}
